<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://cdn.bootcdn.net/ajax/libs/vue/2.6.5/vue.min.js"></script>
</head>
<body>
    <div id="app">
           <!-- 选择一个 -->
           <select name="shuiguo"  v-model="fruit">
               <option value="苹果">苹果</option>
               <option value="香蕉">香蕉</option>
               <option value="茄子">茄子</option>
               <option value="萝卜">萝卜</option>
           </select>
           <h2>您选择的是：{{fruit}}</h2>

           <!-- 多选 -->
           <!-- 这里两个id不能重复 -->
           <select name="shuiguo"  v-model="fruits" multiple>
            <option value="苹果">苹果</option>
            <option value="香蕉">香蕉</option>
            <option value="茄子">茄子</option>
            <option value="萝卜">萝卜</option>
        </select>
        <h2>您选择的是：{{fruits}}</h2>
    </div>
    <script>
        const app = new Vue({
            el:'#app',
            data: {
                message:'hello world!',
                fruit:'苹果',
                fruits:[]
            }
        })
    </script>
</body>
</html>
